package com.mentaleye.dal.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TrxRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TrxRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTrxNoIsNull() {
            addCriterion("trx_no is null");
            return (Criteria) this;
        }

        public Criteria andTrxNoIsNotNull() {
            addCriterion("trx_no is not null");
            return (Criteria) this;
        }

        public Criteria andTrxNoEqualTo(String value) {
            addCriterion("trx_no =", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotEqualTo(String value) {
            addCriterion("trx_no <>", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoGreaterThan(String value) {
            addCriterion("trx_no >", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoGreaterThanOrEqualTo(String value) {
            addCriterion("trx_no >=", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoLessThan(String value) {
            addCriterion("trx_no <", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoLessThanOrEqualTo(String value) {
            addCriterion("trx_no <=", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoLike(String value) {
            addCriterion("trx_no like", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotLike(String value) {
            addCriterion("trx_no not like", value, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoIn(List<String> values) {
            addCriterion("trx_no in", values, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotIn(List<String> values) {
            addCriterion("trx_no not in", values, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoBetween(String value1, String value2) {
            addCriterion("trx_no between", value1, value2, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxNoNotBetween(String value1, String value2) {
            addCriterion("trx_no not between", value1, value2, "trxNo");
            return (Criteria) this;
        }

        public Criteria andTrxTypeIsNull() {
            addCriterion("trx_type is null");
            return (Criteria) this;
        }

        public Criteria andTrxTypeIsNotNull() {
            addCriterion("trx_type is not null");
            return (Criteria) this;
        }

        public Criteria andTrxTypeEqualTo(String value) {
            addCriterion("trx_type =", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeNotEqualTo(String value) {
            addCriterion("trx_type <>", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeGreaterThan(String value) {
            addCriterion("trx_type >", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeGreaterThanOrEqualTo(String value) {
            addCriterion("trx_type >=", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeLessThan(String value) {
            addCriterion("trx_type <", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeLessThanOrEqualTo(String value) {
            addCriterion("trx_type <=", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeLike(String value) {
            addCriterion("trx_type like", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeNotLike(String value) {
            addCriterion("trx_type not like", value, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeIn(List<String> values) {
            addCriterion("trx_type in", values, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeNotIn(List<String> values) {
            addCriterion("trx_type not in", values, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeBetween(String value1, String value2) {
            addCriterion("trx_type between", value1, value2, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxTypeNotBetween(String value1, String value2) {
            addCriterion("trx_type not between", value1, value2, "trxType");
            return (Criteria) this;
        }

        public Criteria andTrxStatusIsNull() {
            addCriterion("trx_status is null");
            return (Criteria) this;
        }

        public Criteria andTrxStatusIsNotNull() {
            addCriterion("trx_status is not null");
            return (Criteria) this;
        }

        public Criteria andTrxStatusEqualTo(String value) {
            addCriterion("trx_status =", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotEqualTo(String value) {
            addCriterion("trx_status <>", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusGreaterThan(String value) {
            addCriterion("trx_status >", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusGreaterThanOrEqualTo(String value) {
            addCriterion("trx_status >=", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusLessThan(String value) {
            addCriterion("trx_status <", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusLessThanOrEqualTo(String value) {
            addCriterion("trx_status <=", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusLike(String value) {
            addCriterion("trx_status like", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotLike(String value) {
            addCriterion("trx_status not like", value, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusIn(List<String> values) {
            addCriterion("trx_status in", values, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotIn(List<String> values) {
            addCriterion("trx_status not in", values, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusBetween(String value1, String value2) {
            addCriterion("trx_status between", value1, value2, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andTrxStatusNotBetween(String value1, String value2) {
            addCriterion("trx_status not between", value1, value2, "trxStatus");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoIsNull() {
            addCriterion("parent_trx_no is null");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoIsNotNull() {
            addCriterion("parent_trx_no is not null");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoEqualTo(String value) {
            addCriterion("parent_trx_no =", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoNotEqualTo(String value) {
            addCriterion("parent_trx_no <>", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoGreaterThan(String value) {
            addCriterion("parent_trx_no >", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoGreaterThanOrEqualTo(String value) {
            addCriterion("parent_trx_no >=", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoLessThan(String value) {
            addCriterion("parent_trx_no <", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoLessThanOrEqualTo(String value) {
            addCriterion("parent_trx_no <=", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoLike(String value) {
            addCriterion("parent_trx_no like", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoNotLike(String value) {
            addCriterion("parent_trx_no not like", value, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoIn(List<String> values) {
            addCriterion("parent_trx_no in", values, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoNotIn(List<String> values) {
            addCriterion("parent_trx_no not in", values, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoBetween(String value1, String value2) {
            addCriterion("parent_trx_no between", value1, value2, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andParentTrxNoNotBetween(String value1, String value2) {
            addCriterion("parent_trx_no not between", value1, value2, "parentTrxNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoIsNull() {
            addCriterion("trx_order_no is null");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoIsNotNull() {
            addCriterion("trx_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoEqualTo(String value) {
            addCriterion("trx_order_no =", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotEqualTo(String value) {
            addCriterion("trx_order_no <>", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoGreaterThan(String value) {
            addCriterion("trx_order_no >", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("trx_order_no >=", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoLessThan(String value) {
            addCriterion("trx_order_no <", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoLessThanOrEqualTo(String value) {
            addCriterion("trx_order_no <=", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoLike(String value) {
            addCriterion("trx_order_no like", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotLike(String value) {
            addCriterion("trx_order_no not like", value, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoIn(List<String> values) {
            addCriterion("trx_order_no in", values, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotIn(List<String> values) {
            addCriterion("trx_order_no not in", values, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoBetween(String value1, String value2) {
            addCriterion("trx_order_no between", value1, value2, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andTrxOrderNoNotBetween(String value1, String value2) {
            addCriterion("trx_order_no not between", value1, value2, "trxOrderNo");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andReturnUrlIsNull() {
            addCriterion("return_url is null");
            return (Criteria) this;
        }

        public Criteria andReturnUrlIsNotNull() {
            addCriterion("return_url is not null");
            return (Criteria) this;
        }

        public Criteria andReturnUrlEqualTo(String value) {
            addCriterion("return_url =", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotEqualTo(String value) {
            addCriterion("return_url <>", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlGreaterThan(String value) {
            addCriterion("return_url >", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlGreaterThanOrEqualTo(String value) {
            addCriterion("return_url >=", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlLessThan(String value) {
            addCriterion("return_url <", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlLessThanOrEqualTo(String value) {
            addCriterion("return_url <=", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlLike(String value) {
            addCriterion("return_url like", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotLike(String value) {
            addCriterion("return_url not like", value, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlIn(List<String> values) {
            addCriterion("return_url in", values, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotIn(List<String> values) {
            addCriterion("return_url not in", values, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlBetween(String value1, String value2) {
            addCriterion("return_url between", value1, value2, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andReturnUrlNotBetween(String value1, String value2) {
            addCriterion("return_url not between", value1, value2, "returnUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlIsNull() {
            addCriterion("notify_url is null");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlIsNotNull() {
            addCriterion("notify_url is not null");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlEqualTo(String value) {
            addCriterion("notify_url =", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlNotEqualTo(String value) {
            addCriterion("notify_url <>", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlGreaterThan(String value) {
            addCriterion("notify_url >", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlGreaterThanOrEqualTo(String value) {
            addCriterion("notify_url >=", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlLessThan(String value) {
            addCriterion("notify_url <", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlLessThanOrEqualTo(String value) {
            addCriterion("notify_url <=", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlLike(String value) {
            addCriterion("notify_url like", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlNotLike(String value) {
            addCriterion("notify_url not like", value, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlIn(List<String> values) {
            addCriterion("notify_url in", values, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlNotIn(List<String> values) {
            addCriterion("notify_url not in", values, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlBetween(String value1, String value2) {
            addCriterion("notify_url between", value1, value2, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andNotifyUrlNotBetween(String value1, String value2) {
            addCriterion("notify_url not between", value1, value2, "notifyUrl");
            return (Criteria) this;
        }

        public Criteria andProductCodeIsNull() {
            addCriterion("product_code is null");
            return (Criteria) this;
        }

        public Criteria andProductCodeIsNotNull() {
            addCriterion("product_code is not null");
            return (Criteria) this;
        }

        public Criteria andProductCodeEqualTo(String value) {
            addCriterion("product_code =", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotEqualTo(String value) {
            addCriterion("product_code <>", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeGreaterThan(String value) {
            addCriterion("product_code >", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeGreaterThanOrEqualTo(String value) {
            addCriterion("product_code >=", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeLessThan(String value) {
            addCriterion("product_code <", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeLessThanOrEqualTo(String value) {
            addCriterion("product_code <=", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeLike(String value) {
            addCriterion("product_code like", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotLike(String value) {
            addCriterion("product_code not like", value, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeIn(List<String> values) {
            addCriterion("product_code in", values, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotIn(List<String> values) {
            addCriterion("product_code not in", values, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeBetween(String value1, String value2) {
            addCriterion("product_code between", value1, value2, "productCode");
            return (Criteria) this;
        }

        public Criteria andProductCodeNotBetween(String value1, String value2) {
            addCriterion("product_code not between", value1, value2, "productCode");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}